package com.opal.system.mapper.oracle;

import com.opal.system.entity.table.OrgSalesorg;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface OrgSalesorgMapper {

    @Select("select name, pk_salesorg from org_salesorg")
    @Results({
            @Result(column = "name", property = "name"),
            @Result(column = "pk_salesorg", property = "pkSalesorg")
    })
    List<OrgSalesorg> findAll();


}
